home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
olrdrs
/
qprn112.zip
/
SMAN.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-05-12
|
2KB
|
41 lines
@echo off
REM This batch file is for using QWKPRUNE with Session Manager.
REM
REM Copy it to the directory where Session Manager is located.
REM
REM In Session Manager's configuration, change your UN ZIP Spec
REM to "SMAN.BAT" (without the quotes). Session Manager will
REM find the file and expand the filename to include the full path.
REM If you have SMQINST, you can edit the Decompression program filespec.
REM SMQINST will not find the file, so you should enter the full filespec,
REM including path and extension.
REM
REM Session Manager's basic configuration routine doesn't accept parameters
REM for the ZIP and UN ZIP programs. If you use it, the unpacker has to be
REM entered directly in the batch file.
REM
REM The line "parmscan PKUNZIP %1" checks the first parameter to see if
REM it contains "PKUNZIP". If it doesn't, the batch file jumps to the
REM :noparms label. This should let you use this batch file in most
REM cases, whether or not you have SMQINST.
REM
REM When Session Manager imports replies, they're unpacked into its
REM work directory. The lines "parmscan .REP %1 %2 %3 %4 %5 %6 %7 %8 %9"
REM and "if not errorlevel 1 exit" prevent QWKPRUNE from being called again
REM in such cases.
REM
REM (4DOS users may replace these lines with
REM "if %@index[%@upper[%1&],.REP] NE -1 quit".)
REM
parmscan PKUNZIP %1
if errorlevel 1 goto noparms
%1 %2 %3 %4 %5 %6 %7 %8 %9
goto rscan
:noparms
pkunzip %1 %2 %3 %4 %5 %6 %7 %8 %9
:rscan
parmscan .REP %1 %2 %3 %4 %5 %6 %7 %8 %9
if not errorlevel 1 exit
if exist messages.dat qwkprune /m